package com.xu.common.test;

import lombok.Data;

import java.util.List;

/**
 * @author xu
 * 2022/7/26 17:46
 */
@Data
public class DemoData {

    /**
     * ID
     */
    private Integer id;
    /**
     * 父级ID
     */
    private Integer pid;
    /**
     * 编码
     */
    private String code;
    /**
     * 名字
     */
    private String name;
    /**
     * 排序编码
     */
    private Integer sort;
    /**
     * 子节点数据
     */
    private List<DemoData> children;

    public DemoData(Integer id, Integer pid, String code, String name, Integer sort) {
        this.id = id;
        this.pid = pid;
        this.code = code;
        this.name = name;
        this.sort = sort;
    }
}
